﻿using PInvoke;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZTHelper.Core
{
    public static class Extension
    {
        public static bool Contains(this RECT rect, int x, int y)
        {
            var rectangle = new Rectangle(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
            return rectangle.Contains(x, y);
        }
    }
}
